@echo off
set app=%1
set tmp=%app%\tmp
mkdir "%tmp%"
set sourcePack="%app%\Rilego0.jar"
set destPack="%app%\rilego.jar"
set cmp="%app%\7za"
Echo "Repacking jar file"
%cmp% x -y %sourcePack% -o"%tmp%"
del %destPack%
%cmp% a -y -mx=9 -mfb=255 -mpass=8 -tzip %destPack% "%tmp%\*"
echo cleaning up
rd /s/q "%tmp%"